From 00b598d2676a2d55467829e1bf26f3cfdf9a774b Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Fri, 7 Jan 2000 19:18:54 +0000 Subject: [PATCH] comment out debugging printing. remove memory_leak 2000-01-07 Jonathan Blandford * gdk-pixbuf/gdk-pixbuf-xform.c (gdk_pixbuf_rotate): comment out debugging printing. * gdk-pixbuf/io-gif.c (gif_get_lzw): remove memory_leak --- gdk-pixbuf/ChangeLog | 4 ++++ gdk-pixbuf/gdk-pixbuf-xform.c | 4 ++-- gdk-pixbuf/io-gif.c | 9 +++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 5d525cce41..beeafad223 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,5 +1,8 @@ 2000-01-07 Jonathan Blandford + * gdk-pixbuf/gdk-pixbuf-xform.c (gdk_pixbuf_rotate): comment out + debugging printing. + * gdk-pixbuf/gdk-pixbuf-io.c: Added progressive animation loading. * gdk-pixbuf/gdk-pixbuf-io.h: Added progressive animation loading. * gdk-pixbuf/gdk-pixbuf-loader.c: Added progressive animation @@ -9,6 +12,7 @@ * gdk-pixbuf/io-gif.c (image_load_increment): I think the ref-counting mess is finally fixed. Added progressive animation loading. + (gif_get_lzw): remove memory_leak * doc/tmpl/gdk-pixbuf-loader.sgml: much longer long description added. diff --git a/gdk-pixbuf/gdk-pixbuf-xform.c b/gdk-pixbuf/gdk-pixbuf-xform.c index 1e2eabe196..f118d9234a 100644 --- a/gdk-pixbuf/gdk-pixbuf-xform.c +++ b/gdk-pixbuf/gdk-pixbuf-xform.c @@ -71,10 +71,10 @@ gdk_pixbuf_rotate (GdkPixbuf *pixbuf, gdouble angle) trans[5] = (double)h / 2.0; art_affine_multiply(affine, rot, trans); - +/* g_print("Affine: %e %e %e %e %e %e\n", affine[0], affine[1], affine[2], affine[3], affine[4], affine[5]); - +*/ /* rowstride = w * pixbuf->art_pixbuf->n_channels; */ rowstride = w * 3; diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index 1ba894dda6..77ed21263e 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -821,10 +821,11 @@ gif_get_lzw (GifContext *context) } if (context->animation && context->state == GIF_GET_NEXT_STEP) { - (* context->frame_done_func) (context->frame, - context->user_data); - - gdk_pixbuf_unref (context->pixbuf); + if (context->frame_done_func) + (* context->frame_done_func) (context->frame, + context->user_data); + if (context->frame_done_func) + gdk_pixbuf_unref (context->pixbuf); context->pixbuf = NULL; context->frame = NULL; } -- 2.30.2